package com.gx.po;

import java.io.Serializable;
import java.util.Date;

/**
 * day_room_info
 * @author 
 */
public class DayRoomInfo implements Serializable {
    /**
     * 客房信息编号
     */
    private Integer id;

    /**
     * 客房类型编号
     */
    private Integer roomTypeId;

    /**
     * 房间总数
     */
    private Integer roomTotalNumber;

    /**
     * 日期
     */
    private Date infoDate;

    /**
     * 预定数
     */
    private Integer reserveNumber;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getRoomTypeId() {
        return roomTypeId;
    }

    public void setRoomTypeId(Integer roomTypeId) {
        this.roomTypeId = roomTypeId;
    }

    public Integer getRoomTotalNumber() {
        return roomTotalNumber;
    }

    public void setRoomTotalNumber(Integer roomTotalNumber) {
        this.roomTotalNumber = roomTotalNumber;
    }

    public Date getInfoDate() {
        return infoDate;
    }

    public void setInfoDate(Date infoDate) {
        this.infoDate = infoDate;
    }

    public Integer getReserveNumber() {
        return reserveNumber;
    }

    public void setReserveNumber(Integer reserveNumber) {
        this.reserveNumber = reserveNumber;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DayRoomInfo other = (DayRoomInfo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getRoomTypeId() == null ? other.getRoomTypeId() == null : this.getRoomTypeId().equals(other.getRoomTypeId()))
            && (this.getRoomTotalNumber() == null ? other.getRoomTotalNumber() == null : this.getRoomTotalNumber().equals(other.getRoomTotalNumber()))
            && (this.getInfoDate() == null ? other.getInfoDate() == null : this.getInfoDate().equals(other.getInfoDate()))
            && (this.getReserveNumber() == null ? other.getReserveNumber() == null : this.getReserveNumber().equals(other.getReserveNumber()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getRoomTypeId() == null) ? 0 : getRoomTypeId().hashCode());
        result = prime * result + ((getRoomTotalNumber() == null) ? 0 : getRoomTotalNumber().hashCode());
        result = prime * result + ((getInfoDate() == null) ? 0 : getInfoDate().hashCode());
        result = prime * result + ((getReserveNumber() == null) ? 0 : getReserveNumber().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", roomTypeId=").append(roomTypeId);
        sb.append(", roomTotalNumber=").append(roomTotalNumber);
        sb.append(", infoDate=").append(infoDate);
        sb.append(", reserveNumber=").append(reserveNumber);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}